home *** CD-ROM | disk | FTP | other *** search
-
- INTRODUCTION
-
- libextra.a is a link library for vbcc which contains certain often
- used functions that are not standard ANSI-functions. It may e.g.
- be helpful in porting programs.
-
-
- LEGAL
-
- The functions in libextra.a are written by Kasper B. Graversen and
- Volker Barthelmann.
- libextra.a is public domain.
-
-
- USAGE
-
- To link with libextra.a (or the small data version libextras.a) you
- can either use vconfig (add 'extra' or 'extras' in the lib link
- menu) or specify '-lextra' or '-lextras' to vc.
- There is also a header file <extra.h>.
-
-
- FUNCTIONS
-
- At the moment extra.lib contains the following functions:
-
- getch() Similar to getchar() but sets the console to raw mode
- and does not wait for return.
- Caution: This will be rather slow on PowerUp!
-
- stricmp() Case-insensitive variant of strcmp(). Can be inlined
- by #defining __INLINE_STRICMP when including <extra.h>.
-
- strnicmp() Case-insensitive variant of strncmp(). Can be inlined
- by #defining __INLINE_STRNICMP when including <extra.h>.
-
- chdir() Changes the current directory.
-
- clock() This is an alternative version of the clock() function
- in vc.lib. clock() is supposed to return the amount of
- cpu-time spent by the current program. As this is
- generally not possible on the Amiga clock() from
- vc.lib always returns -1.
- However there seem to be several badly written
- programs that do not check this. So this version
- of clock() returns values which are strictly ascending
- for successive calls to clock() and the difference
- between them is the time difference between the calls.
- CAUTION: This will be very slow on PowerUp!
-
- iswhitespace() Variant of isspace(). Can be inlined by #defining
- __INLINE_ISWHITESPACE when including <extra.h>.
-
- isseparator() Tests for ',' or '|'. Can be inlined by #defining
- __INLINE_ISSEPARATOR when including <extra.h>.
-
-
- FUTURE
-
- If you are missing certain functions and would like them to be
- included in extra.lib send a mail to Kasper B. Graversen at
-
- (internet)
- kbg2001@internet.dk
-
- (fidonet)
- 2:237/30.7
-
- Please explain the desired functions as detailed as possible (how
- they should work, prototypes, return values in case of errors etc.).
- If possible submit source code for the function.
-
-
- Kasper B. Graversen and Volker Barthelmann
-
-